package com.example.springboot.config;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.connection.Message;
import org.springframework.data.redis.connection.MessageListener;

/**
 * @description: redis消费者监听，该类通过调用MessageListener业务类来实现监听
 * @author: Yuwl
 * @create: 2019-11-27 11:41
 **/
public class SubscribeListener implements MessageListener {
	@Autowired
	private MessageListener messageListener;

	@Override
	public void onMessage(Message message, byte[] pattern) {
		messageListener.onMessage(message, pattern);
	}
}
